package com.example.thegreatwall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "u_contacts")
public class UContacts {
    /**
     * 联系人ID
     */

    @TableId(value = "u_coutacts_id", type = IdType.INPUT)
    private Long id;

    /**
     * 联系人姓名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 联系人手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 身份证号码
     */
    @TableField(value = "idCard")
    private String idcard;

    /**
     * 关联用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    @TableField(value = "role")
    private Integer role;

    /**
     * 特殊证件id
     */
    @TableField(value = "certificate_num")
    private String certificateNum;
}